(Fremove_text_properties, Fadd_text_properties):
authorRichard M. Stallman <rms@gnu.org>
Mon, 21 Jun 1993 19:37:49 +0000 (19:37 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 21 Jun 1993 19:37:49 +0000 (19:37 +0000)
Really do next_interval when skipping the first interval.

src/textprop.c

index d5f3852cae7118bd18be03677348bc6b264bcb21..ea7968874576ec13ae70f9ac7a32ef2a9c5763be 100644 (file)
@@ -643,6 +643,7 @@ Return t if any property value actually changed, nil otherwise.")
          if (got >= len)
            return Qnil;
          len -= got;
+         i = next_interval (i);
        }
       else
        {
@@ -815,6 +816,7 @@ Return t if any property was actually removed, nil otherwise.")
          if (got >= len)
            return Qnil;
          len -= got;
+         i = next_interval (i);
        }
       /* Split away the beginning of this interval; what we don't
         want to modify.  */